package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class RoleUserMap {
    @TableId(type = IdType.AUTO)
    private int id;
    private int rolesId;
    private int userId;
    private String createBy;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    @TableLogic
    private Integer deleted; //逻辑删除

    @TableField(exist = false)
    private List<User> userList;
}
